//
//  LSZCacheHandling.h
//  JKFuYinProject
//
//  Created by 九酷 on 2017/10/31.
//  Copyright © 2017年 LC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
typedef void (^plistData)(BOOL,NSDictionary *);
typedef void (^strArray) (BOOL,NSMutableArray *);

@interface LSZCacheHandling : NSObject
{
    sqlite3 *_dbPoint;  //用于保存数据库对象的地址
}
#pragma mark - 查看里面有没有数据
+(void)initWithfindPlist :(NSString *)strPlistName :(plistData)block;
#pragma mark - 删除对应文件夹的数据
+(void)initWithdeletingPlist :(NSString *)strPlistName :(plistData)block;

#pragma mark - 赞美诗歌的分类把请求到的数据添加进去
+(void)initAddPathPraisePoetry :(NSString *)strPlistName NSDictionary:(NSDictionary *)dic;
#pragma mark - 查询是否有缓存 YYCache
+(void)seeIfThereIsCache :(NSString *)LargeDirectory :(NSString *)SmallDirectory :(strArray)block;
#pragma mark - 添加数据做缓存 传进来的是字典
+(void)addDicDataCachedDirectly :(NSString *)strPlistName NSDictionary:(NSDictionary *)dic;
#pragma mark - 添加数据做缓存
+(void)addDataForCachingWithDic:(NSString *)LargeDirectory SmallDirectory:(NSString *)SmallDirectory dic:(NSDictionary *)dic;
#pragma mark - 添加数据做缓存 传进来的是数组
+(void)addDataForCaching :(NSString *)LargeDirectory SmallDirectory:(NSString *)SmallDirectory array:(NSArray *)array;
#pragma mark - 修改某个数据的某个参数 做判断的key 应该为的value       需要改变的key是parameter  改变的value是modifiedValue
+(void)modifyingParameterOfData :(NSString *)LargeDirectory SmallDirectory:(NSString *)SmallDirectory key:(NSString *)key value:(NSString *)value parameter:(NSString *)parameter modifiedValue:(NSString *)modifiedValue;
#pragma mark - 把传过来的dic直接做缓存
+(void)makeCacheOfThePassedDicDirectly:(NSString *)LargeDirectory dic:(NSDictionary *)dic;
@end
